/**
@extends Ext.regModel
This file containted set of instruction about the way of writing data in a cartStore, and how the data exactly look.
*/

Ext.regModel('CartItem', {
	sorters : "text",
    fields: [
        {name: 'id', type: 'int'},
        {name: 'text', type: 'string'},
        {name: 'price', type: 'real'},
        {name: 'size', type: 'string'},
        {name: 'ingredients', type: 'auto'},
    ],
    proxy: {
        type: 'localstorage',
        id  : 'cartItemsStorage'
    }
});